package datastructure.linkedlist;


class SLLNode {
	Object data;
	SLLNode next;
	
	SLLNode(){}
	
	SLLNode(Object obj){
		data = obj;
	}
	
//	SLLNode(Object obj,SLLNode link){
//		data = obj;
//		next = link;
//	}
	public void setNext(SLLNode link){
		next = link;
	}
	
	public String toString(){
		return data.toString();
	}
}
